home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
misc
/
ofcnhome.arj
/
SYNCPCS.BAT
< prev
Wrap
DOS Batch File
|
1994-01-12
|
873b
|
27 lines
@echo off
cls
echo Synchronizing PCs...
REM Ask the user if we need to run oah s pass 2
c:\dos\choice /c:yn /t:y,10 /n "Are you going to do a backup ? [Y,n]: "
if errorlevel 2 goto runpcb
c:\uti\ofcnhom /n1 c:*.*
:runpcb
REM Make sure a copy of CONFIG and AUTOEXEC will be saved...
copy c:\config.sys c:\config.%pc%>nul
copy c:\autoexec.bat c:\autoexec.%pc%>nul
REM ...but not the actual files, to avoid overwriting the other PC's configuration.
REM (Setting off the "Archive" bits will tell CPB that these files have NOT changed.)
c:\dos\attrib -a c:\config.sys
c:\dos\attrib -a c:\autoexec.bat
REM Now run PC Backup (the /PS2 param only resets the mouse):
cpbackup /ps2
:sync
c:\dos\choice /c:yn /t:y,10 /n "Did you restore anything ? [Y,n]: "
if errorlevel 2 goto exit
REM User did a restore - Now run pass 1:
c:\uti\ofcnhom /n2 c:*.*
:done